﻿using Microsoft.AspNetCore.Mvc;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace mvc.Controllers
{
    public class UserController : Controller
    {
        public IActionResult Index()
        {

            // 进行计算工作


            // 将数据返回到页面

            ViewData["user1"] = "yejing";
            ViewBag.user2 = "Jim";
            TempData["user3"] = "Tom";
            HttpContext.Session.Set("user4", Encoding.UTF8.GetBytes("wangwu"));
            return View();
        }
    }
}
